package com.wwe.kotlinstudy.dm.three;

/**
 * 线程安全的懒汉式
 */
public class ThreadSafeLanHanJava {


    private static ThreadSafeLanHanJava instance;

    private ThreadSafeLanHanJava() {
    }

    public static synchronized ThreadSafeLanHanJava getInstance() {
        if (instance == null) {
            instance = new ThreadSafeLanHanJava();
        }
        return instance;
    }


}
